In [1]:
Boyle.list()
Out[1]:
In [2]:
Boyle.mk("my_new_env")
Out[2]:
In [3]:
Boyle.activate("my_new_env")
Out[3]:
In [4]:
Boyle.install({:number, "~> 0.5.7"})
Out[4]:
In [5]:
Boyle.list()
Out[5]:
In [6]:
Boyle.active_env_name()
Out[6]:
In [7]:
Number.Currency.number_to_currency(2034.46)
Out[7]:
In [8]:
Number.Phone.number_to_phone(1112223333, area_code: true, country_code: 1)
Out[8]:
In [9]:
Number.Percentage.number_to_percentage(100, precision: 0)
Out[9]:
In [10]:
Number.Human.number_to_human(1234)
Out[10]:
In [11]:
Number.Delimit.number_to_delimited(12345678)
Out[11]:
In [12]:
Boyle.deactivate()
Out[12]:
In [13]:
Boyle.active_env_name()
Out[13]:
In [14]:
# Number library won't work if you deactivate the environment
Number.Currency.number_to_currency(2034.46)
In [14]:
Boyle.activate("my_new_env")
Out[14]:
In [15]:
# and if you activate it will work again
Number.Currency.number_to_currency(2034.46)
Out[15]:
In [16]:
Boyle.freeze()
Out[16]:
In [17]:
Boyle.list()
Out[17]:
In [18]:
Boyle.rm("my_new_env")
Out[18]: